﻿@model MVCSampleApp.Models.EventsAndMenus
@{
  ViewBag.Title = "Use a Partial View";
}
<script>
  $(function () {
    $("#getEvents").click(function () {
      $("#events").load("/ViewsDemo/ShowEvents");
    });
  });
</script>
<h2>UseAPartialView</h2>
<div>this is the main view</div>
<button id="getEvents">Get Events</button>
<div id="events">
</div>
